#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QPushButton>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void backset();
    void broad();
    void paintEvent(QPaintEvent *);
    void pathline();
protected:
     void mousePressEvent(QMouseEvent *event);
     void mouseMoveEvent(QMouseEvent *event);
     void mouseReleaseEvent(QMouseEvent *event);
     void wheelEvent(QWheelEvent *e);

private:
    Ui::MainWindow *ui;
    QImage image;
    int tweight,theight;
    QPushButton *btclose;
    QPoint last;
    //QButton
};

#endif // MAINWINDOW_H
